using System;

namespace Qplus.protocol
{

    /**
     * 发送消息应答
     *
     *
     */
    public class U2C_RESP_CHAT_SENDMSG : InPacket
    {

        //	kal_uint32 appID; 应用ID
        //	kal_uint8 sessionID; 会话ID
        //	kal_uint8 result;(0成功，1失败 2 离线消息)

        private long appID;

        private long sessionID;

        private int result;


        protected override void parseBody(byte[] data, int offset, int count)
        {
            appID = get4(data);
            sessionID = get4(data);
            result = get1(data);
        }

        public long getAppID()
        {
            return appID;
        }

        public void setAppID(long appID)
        {
            this.appID = appID;
        }

        public long getSessionID()
        {
            return sessionID;
        }

        public void setSessionID(long sessionID)
        {
            this.sessionID = sessionID;
        }

        public int getResult()
        {
            return result;
        }

        public void setResult(int result)
        {
            this.result = result;
        }

    }
}
